import instance from '@/utils/request';

//采购管理列表
export function CatProcureMentListAPI(data) {
    return instance.request({
        url: "api/ProcureMent/CatProcureMentList",
        method: "post",
        data
    })
}

//添加采购管理列表
export function AddProcureMentAPI(data) {
    return instance.request({
        url: "api/ProcureMent/AddProcureMent",
        method: "post",
        data
    })
}

//枚举状态
export function GetProcureStatusAPI(data) {
    return instance.request({
        url: "api/ProcureMent/GetProcureStatus",
        method: "post",
        data
    })
}

//删除采购管理列表
export function DeleteProcureMentAPI(data) {
    return instance.request({
        url: "api/ProcureMent/DeleteProcureMent",
        method: "post",
        data
    })
}

//批量删除采购管理列表
export function DeleteProcureMentListAPI(data) {
    return instance.request({
        url: "api/ProcureMent/DeleteProcureMentList",
        method: "post",
        data
    })
}

//反填
export function GetProcureManagementByCodeAPI(data) {
    return instance.request({
        url: "api/ProcureMent/GetProcureManagementByCode",
        method: "post",
        params: data
    })
}

//编辑采购列表
export function UpdateProcureMentAPIAPI(data) {
    return instance.request({
        url: "api/ProcureMent/UpdateProcureMent",
        method: "post",
        data
    })
}

//销售单号列表
export function GetSalesCodeListAPI(data) {
    return instance.request({
        url: "api/ProcureMent/GetSalesCodeList",
        method: "post",
        data
    })
}

//根据销售单号获取销售单信息
export function GetSalesManagementByCodeAPI(data) {
    return instance.request({
        url: "api/ProcureMent/GetSalesManagementByCode",
        method: "post",
        params: data
    })
}

//采购入账
export function ProcureInAccountAPI(data) {
    return instance.request({
        url: "api/ProcureMent/ProcureInAccount",
        method: "post",
        data
    })
}

//采购退货
export function ProcureReturnAPI(data) {
    return instance.request({
        url: "api/ProcureMent/ProcureReturn",
        method: "post",
        data
    })
}

